package com.lovo.school.frame;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;

import javax.swing.JDialog;
import javax.swing.JFrame;

import com.lovo.netCRM.component.LovoButton;
import com.lovo.netCRM.component.LovoComboBox;
import com.lovo.netCRM.component.LovoImageLabel;
import com.lovo.netCRM.component.LovoLabel;
import com.lovo.netCRM.component.LovoTitleLabel;
import com.lovo.netCRM.component.LovoTxt;
import com.lovo.netCRM.component.LovoTxtArea;

/**
 * 查看学校详细信息对话框
 * @author 白德柯
 *
 */
public class SchoolShowDialog extends JDialog{

	/**学校ID*/
	private int id;
	/**学校名称文本框*/
	private LovoLabel nameLabel = new LovoLabel("学校名称",40,90,this);
	/**所属城市标签*/
	private LovoLabel cityLabel = new LovoLabel("所属城市",300,90,this);
	/**学校地址标签*/
	private LovoLabel addrLabel = new LovoLabel("学校地址",560,90,this);
	/**联系电话文本框*/
	private LovoLabel phoneLabel = new LovoLabel("联系电话",40,130,this);
	/**校长文本框*/
	private LovoLabel leaderLabel = new LovoLabel("校长",300,130,this);
	/**学生人数文本框*/
	private LovoLabel studentCountLabel = new LovoLabel("学生人数",560,130,this);
	/**老师人数文本框*/
	private LovoLabel teacherCountLabel = new LovoLabel("老师人数",40,170,this);
	/**IP地址文本框*/
	private LovoLabel ipLabel = new LovoLabel("IP地址",300,170,this);
	/**说明标签*/
	private LovoLabel infoLabel = new LovoLabel("说明",560,170,this);
	/**负责部门标签*/
	private LovoLabel deptLabel = new LovoLabel("负责部门",40,210,this);
	/**负责人标签*/
	private LovoLabel empLabel = new LovoLabel("负责人",300,210,this);
	/**状态标签*/
	private LovoLabel statusLabel = new LovoLabel("状态",40,250,this);
	/**录入时间标签*/
	private LovoLabel createDateLabel = new LovoLabel("录入时间",300,250,this);
	/**申请立项时间标签*/
	private LovoLabel applyForDateLabel = new LovoLabel("申请立项时间",560,250,this);
	/**批准立项时间标签*/
	private LovoLabel passDateLabel = new LovoLabel("批准立项时间",40,290,this);
	/**审批意见标签*/
	private LovoLabel approvalOpinionLabel = new LovoLabel("审批意见",300,290,this);
	
	public SchoolShowDialog(JFrame jf,int id){
		super(jf,true);
		this.id = id;
		this.setLayout(null);
		
		this.init();
		this.setTitle("查看学校信息");
		Dimension screensize = Toolkit.getDefaultToolkit().getScreenSize();
		int x = (int) screensize.getWidth() / 2 - 430;
		int y = (int) screensize.getHeight() / 2 - 240;
		this.setBounds(x, y, 860, 480);
		this.setVisible(true);
	}
	/**
	 * 初始化
	 *
	 */
	private void init(){
		LovoTitleLabel titleLabel = new LovoTitleLabel("查看学校信息",this);
		titleLabel.setLocation(300, titleLabel.getY());
		this.initData(id);
		
		LovoButton okButton = new LovoButton(300,330,"确定","image/ok.png",this);
		okButton.addActionListener(new ActionListener(){

			public void actionPerformed(ActionEvent e) {
				SchoolShowDialog.this.dispose();
			}});
	
	}
	
	
	//-------------------------------------------
	
	
	
	/**
	 * 初始化数据
	 * @param id
	 */
	private void initData(int id){
		
	}


}
